import type { IPageHeaderConfig } from '@/global/types'

const loginLogHeaderConfig: IPageHeaderConfig = {
  pageName: 'loginLog',
  form: {
    layout: {
      labelWidth: '70px', // 左边文字宽度
      size: 'small', // 表单大小
      isShowBtns: true,
      xs: 24, // <768, 下面三个主要是是给弹框内表单布局用的
      sm: 12, // >768
      md: 8 //> 992
    },
    items: [
      {
        type: 'input',
        prop: 'logUrl',
        label: '请求的url',
        placeholder: '请输入url',
        span: 8
      },
      {
        type: 'input',
        prop: 'createBy',
        label: '登录用户',
        span: 8,
        placeholder: '请输入用户'
      },
      {
        type: 'select',
        prop: 'logStatus',
        label: '请求状态',
        placeholder: '选择状态',
        span: 8,
        options: [
          { label: '成功', value: 20000 },
          { label: '失败', value: 50000 }
        ]
      },
      {
        type: 'date-time-picker',
        label: '创建时间',
        prop: 'createTime',
        size: 'small',
        span: 8,
        placeholder: '创建时间'
      },
      {
        type: 'date-time-picker',
        label: '结束时间',
        prop: 'endTime',
        size: 'small',
        span: 8,
        placeholder: '结束时间'
      }
    ]
  }
}

export default loginLogHeaderConfig
